<?php
namespace app\index\controller;
use think\Request;
use app\common\service\Post as PostService;
use app\common\controller\FrontBase;

/**
 * 单页
 * Class Page
 * @package app\index\controller
 */
class Page extends FrontBase{

    public function index(Request $request){

        $id = $request->param('id');
        $postService = new PostService();
        $post = $postService -> find($id);

        $this->param['post'] = $post;

        return view('',$this->param);
    }

    public function hr(){

        return view();
    }

    public function suggestion(){

        return view();
    }

    public function successCase(){

        return view();
    }

    public function contact(){

        return view();
    }
}
